//
//  NoticeAdvertismentHeaderTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/9/12.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "NoticeAdvertismentHeaderTableViewCell.h"

@implementation NoticeAdvertismentHeaderTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.timeLabel];
}

-(UILabel *)timeLabel
{
    if (_timeLabel == nil) {
        _timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, WIDTH, 44)];
        _timeLabel.font = font(12);
        _timeLabel.textColor = SFM153;
        _timeLabel.textAlignment = NSTextAlignmentCenter;
        _timeLabel.backgroundColor = SFM242;
    }
    return _timeLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
